<template>
    <div class="register full_page">
        <!--<cube-form>-->
        <!--<cube-input placeholder="名字" v-model="name"></cube-input>-->
        <!--<cube-input :autocomplete="true" v-model="password"  type="password" :eye="eye" placeholder="密码"></cube-input>-->
        <!--<cube-input :autocomplete="true" v-model="rePaw"  type="password" :eye="eye" placeholder="重复密码"></cube-input>-->
        <!--<cube-input placeholder="手机号码" v-model="phone"></cube-input>-->
        <!--<cube-input v-model="captcha" placeholder="验证码"></cube-input>-->
        <!--<img @click="changeCaptcha" :src="captchaImg" alt="">-->
        <!--<cube-button @click="confirm" :primary="true">提交</cube-button>-->
        <!--<cube-button @click="toLogin" :light="true"  >老用户登录</cube-button>-->
        <!--</cube-form>-->
    </div>
</template>

<!--<script>-->
    <!--import {guid} from '../../yf/util/guid.js'-->
    <!--import {captcha} from "../../api/login";-->
    <!--import {register} from '../../api/register'-->
    <!--import {mapActions} from 'vuex'-->
    <!--import {getLoginBackUrl} from "../../cookie";-->
    <!--import * as ToastUtil from '../../cubeui/toast'-->
    <!--export default {-->
        <!--name: "index",-->
        <!--created(){-->
            <!--this.uuid = guid();-->
            <!--this.captchaImg = captcha(this.uuid);-->
        <!--},-->
        <!--data(){-->
            <!--return {-->
                <!--captchaImg:null,-->
                <!--name:null,-->
                <!--phone: null,-->
                <!--password: null,-->
                <!--rePaw:null,-->
                <!--uuid: null,-->
                <!--captcha: null,-->
                <!--eye:{ open: true, reverse: true },-->
                <!--loadingToast:null,-->
                <!--errorToast:null-->
            <!--}-->
        <!--},-->
        <!--computed:{-->

        <!--},-->
        <!--methods:{-->
            <!--...mapActions([-->
                <!--'register'-->
            <!--]),-->
            <!--confirm(){-->
                <!--ToastUtil.showLoadingToast()-->
                <!--this.register({name:this.name,password:this.password,phone:this.phone,uuid:this.uuid,captcha:this.captcha}).then(res=>{-->
                    <!--ToastUtil.showCorrectToast('操作成功')-->
                    <!--let backUrl = getLoginBackUrl()-->
                    <!--if(!backUrl) {-->
                        <!--return '/main'-->
                    <!--}-->
                    <!--setTimeout( ()=> {-->
                      <!--this.$router.push({-->
                          <!--path:backUrl-->
                      <!--})-->
                    <!--},200)-->

                <!--}).catch(error=>{-->
                    <!--ToastUtil.showErrorToast(error)-->
                    <!--this.changeCaptcha()-->
                <!--})-->
            <!--},-->
            <!--toLogin(){-->
                <!--this.$router.push({-->
                    <!--path:'/Login'-->
                <!--})-->
            <!--},-->
            <!--changeCaptcha() {-->
                <!--this.captchaImg = captcha(this.uuid);-->
            <!--}-->
        <!--}-->
    <!--}-->
<!--</script>-->

<style scoped>

</style>
